# -*- coding: utf-8 -*-
# @Time    : 2020/3/20 19:50
# @Author  : LY

# import os
# import sys
# # 获得当前文件的父目录路径
# curPath = os.path.abspath(os.path.dirname(__file__))
# # 获得当前文件的2次父文件夹目录的绝对路径
# root_path = os.path.abspath(os.path.dirname(curPath))
# # 把项目的根目录通过sys.path.append添加为执行时的环境变量
# sys.path.append(root_path)
#
# print('------------------------------------------------')
#
# print(f'os.path.dirname(__file__) --> {os.path.dirname(__file__)}')
# print(f'root_path) --> {root_path}')
print(f'__file__) --> {__file__}')
# os.path.dirname(__file__) --> E:/Desktop/app_test/pytest测试/page
# root_path) --> E:\Desktop\app_test\pytest测试